package at.codebase.core;

/**
 * Contains static links to servlets. These are used for creating HTML links and
 * HTTP(S) redirects.
 * 
 * @author Daniel Marth <danielmarth@gmx.at>
 */
public class ServletList {

	public static class RequestResult {
		public static final String Error = "error";
		public static final String Success = "success";
	}

	public static final String Home = "/home";
	public static final String ErrorHome = "/home?reason={reason}"
			+ RequestResult.Error;
	public static final String Search = "/search";
	public static final String SearchQueryWithPage = "/search?query={query}&page={page}";
	public static final String UserProfile = "/user/userProfile";

	/*
	 * AJAX servlets
	 */
	public static final String ServiceAccount = "/service/account";

	/*
	 * Administrative servlets
	 */
	public static final String Overview = "/admin/overview";
	public static final String OverviewWithPage = "/admin/overview?page={page}";
	public static final String ManageAdmins = "/admin/manageAdmins";
	public static final String LogViewer = "/admin/logViewer";
	public static final String LogvViewerWithPage = "/admin/logViewer?page={page}";

}
